//
//  SGPhotoList.h
//  朋友圈
//
//  Created by gzz on 2017/6/24.
//  Copyright © 2017年 gzz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>


@interface SGPhotoAblumList : NSObject

/*
 *
 */
@property (nonatomic,copy)NSString *tittle;


@property(nonatomic,assign)NSInteger count;

@property (nonatomic,strong)PHAsset *headImageAsset;

@property (nonatomic,strong)PHAssetCollection *assetCollection;

@end
@interface SGPhotoList : NSObject


+(instancetype)sharePhotoTools;



- (void)saveImageToAblum:(UIImage *)image completion:(void (^)(BOOL, PHAsset *))completion;
- (NSArray<SGPhotoAblumList *> *)getPhotoAblumList;

- (NSArray<PHAsset *> *)getAssetsInAssetCollection:(PHAssetCollection *)assetCollection ascending:(BOOL)ascending;

//
- (void)requestImageForAsset:(PHAsset *)asset size:(CGSize)size resizeMode:(PHImageRequestOptionsResizeMode)resizeMode completion:(void (^)(UIImage *, NSDictionary *))completion;
- (PHAssetCollection *)getDestinationCollection;

@end
